import {
    DownSquareOutlined,
    MenuUnfoldOutlined,
    PicCenterOutlined,
    FullscreenOutlined,
    FormOutlined,
    DiffOutlined,
    QuestionCircleOutlined,
} from '@ant-design/icons'
import Home from '../page/home'
import Resource from '../page/home/resource'
import Broadcast from '../page/home/broadcast'
import Group from '../page/home/group'
import Examine from '../page/home/examine'
import Order from '../page/home/order'
import Help from '../page/home/help'
import Agent from '../page/home/agent'
import Login from '../page/login'
import Sale from '../page/home/resource/sale'
import Lease from '../page/home/resource/lease'
import LiveBroadcast from '../page/liveBroadcast'

/* 路由表 */
export const routes = [{
    element: <Home />,
    path: '/',
    meta: ['管理员'],
    children: [{
        element: <Resource />,
        icon: <MenuUnfoldOutlined />,
        name: '房源管理',
        path: '/resource',
        children: [{
            element: <Sale />,
            name: '销售楼盘',
            path: '/resource/sale'
        }, {
            element: <Lease />,
            name: '房屋租赁',
            path: '/resource/lease'
        }]
    }, {
        element: <Broadcast />,
        icon: <PicCenterOutlined />,
        name: '直播管理',
        path: '/broadcast',
    }, {
        element: <Group />,
        icon: <FullscreenOutlined />,
        name: '团购管理',
        path: '/group',
    }, {
        element: <Examine />,
        icon: <FormOutlined />,
        name: '审核管理',
        path: '/examine',
    }, {
        element: <Order />,
        icon: <DiffOutlined />,
        name: '订单管理',
        path: '/order',
    }, {
        element: <Help />,
        icon: <QuestionCircleOutlined />,
        name: '咨讯管理',
        path: '/help',
    }, {
        element: <Agent />,
        icon: <DownSquareOutlined />,
        name: '经纪人管理',
        path: '/agent',
    }]
}, {
    element: <Login />,
    path: '/login',
    meta: ['管理员'],
},
{
    element: <LiveBroadcast />,
    path: '/liveBroadcast',
    meta: ['管理员'],

}]